package com.sino.tb.attachment.assets;

import com.sino.tb.attachment.route.IP;
import com.sino.tb.attachment.route.Location;

public class Device {
	private long serial = 0;

	private String name = "";

	private String type="";

	private long serialOrgan=0;

	private Organ organ=null;

	private IP ipDev=null;

	private long fileMaxNumber=0;

	private String notes="";

	private Location locationDev=null;
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

	public long getFileMaxNumber() {
		return fileMaxNumber;
	}

	public void setFileMaxNumber(long fileMaxNumber) {
		this.fileMaxNumber = fileMaxNumber;
	}

	public IP getIpDev() {
		return ipDev;
	}

	public void setIpDev(IP ipDev) {
		this.ipDev = ipDev;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public Organ getOrgan() {
		return organ;
	}

	public void setOrgan(Organ organ) {
		this.organ = organ;
	}

	public long getSerial() {
		return serial;
	}

	public void setSerial(long serial) {
		this.serial = serial;
	}

	public long getSerialOrgan() {
		return serialOrgan;
	}

	public void setSerialOrgan(long serialOrgan) {
		this.serialOrgan = serialOrgan;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Location getLocationDev() {
		return locationDev;
	}

	public void setLocationDev(Location locationDev) {
		this.locationDev = locationDev;
	}

	public boolean equals(Object arg0) {
		Device dev=(Device)arg0;
		return dev.getSerial()==this.serial;
	}

}
